<html>
<head>
	<title>Survey</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;" />
	<meta name="format-detection" content="telephone=no" />
	
	<link rel="stylesheet" href="css/style.css" />
</head>
<body>
	<div id="header">
		<div id="logo"><img src="images/logo.jpeg" /></div>
		<div id="bar"><p id="headerText"><center><b><u>CLIENT SURVEY</u></b></center></p></div>
	</div>
	<p>
Welcome to the Inspirity client survey. Thank you for your participation!
	<br/>
Inspirity team
	</p>
	<div>
		<img src="images/chart_image.jpg" />
	<div>
	<br/>
	<form id="form" action="confirm.php" method="post">
	<select name="company" id="company">
<?php
include 'config.php';

$conn = mysql_connect($host, $user, $password) or die(mysql_error());
mysql_select_db("mweb_survey");

$sql_comp = "SELECT * FROM company ORDER BY CompName";
$result_comp = mysql_query($sql_comp, $conn) or die(mysql_error());

while ($row_comp = mysql_fetch_assoc($result_comp)) {
	$comp_id = $row_comp['CompID'];
	$comp_name = $row_comp['CompName'];
	echo "<option value='$comp_id'>$comp_name</option>";
}
?>
	</select>
	<br/><input type="submit" value="Get Company" />
	</form>
	
	<br/>
	<button onclick="window.location.href='search.php'">Search Company</button>
	<br/>
	<button onclick="window.location.href='create.php'">Create Company</button>
	
<?php include 'footer.php';?>
</body>
</html>